package com.ido.otaclient;

/**
 * Copyright (c) 2019 深圳市爱都科技有限公司. All rights reserved.
 *
 * @Author: xyb
 * @CreateDate: 2020-02-21 17:21
 * @description
 */
public enum Status {
    REQUEST_OK(200, "请求成功"),
    REQUEST_ERROR(500, "请求失败"),
    REQUEST_ERROR_API(501, "无效的请求接口"),
    REQUEST_ERROR_CMD(502, "无效命令"),
    REQUEST_ERROR_DEVICEID(503, "不匹配的设备ID"),
    REQUEST_ERROR_ENV(504, "不匹配的服务环境");

    private final int requestStatus;
    private final String description;

    Status(int requestStatus, String description) {
        this.requestStatus = requestStatus;
        this.description = description;
    }

    public String getDescription() {
        return description;
    }

    public int getRequestStatus() {
        return requestStatus;
    }
}
